﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCQuaTrinhCT.ascx.cs"
    Inherits="Viewer.NhanSu.UserControl.UCQuaTrinhCT" %>
<%@ Register Src="~/UserControls/UCQuyetDinh.ascx" TagName="UCQuyetDinh" TagPrefix="uc" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<%@ Register Src="~/NhanSu/UserControl/UcToChuc.ascx" TagName="UcToChuc" TagPrefix="uc" %>
<link href="../../resources/css/main.css" rel="stylesheet" type="text/css" />
<style type="text/css">
    body
    {
        color: #57585B; /*dark gray*/
        font-size: 8px;
        font-family: Arial;
    }
</style>
<ext:XScript ID="XScipt1" runat="server">
    <script type="text/javascript">
     
    </script>
</ext:XScript>
<ext:Window ID="wdQTCT" runat="server" AutoHeight="true" Closable="false" Modal="true"
    Icon="TableCell" Width="500" Layout="Fit" AutoScroll="true" Hidden="true" Resizable="true"
    BodyCssClass="window">
    <Listeners>
    </Listeners>
    <Content>
        <ext:Panel ID="Panel1" runat="server" Frame="false" Border="false" AutoHeight="true"
            Icon="Information" BodyStyle="background-color: white;">
            <Content>
                <ext:Hidden ID="hdToChucId_QTCT" runat="server">
                </ext:Hidden>
                <ext:Hidden ID="hdFlagToChuc_QTCT" runat="server" />
                <ext:Hidden ID="hdParentType" runat="server" />
                <ext:Hidden ID="hdType" runat="server" />
                <ext:Hidden ID="hdNhanVienId" runat="server" />
                <ext:Hidden ID="hdId" runat="server" />
                 <ext:Hidden ID="hdQDID" runat="server" />
                <ext:CompositeField ID="CompositeField4" runat="server">
                    <Items>
                        <ext:Label Width="150" ID="Label4" Text="Cơ quan sử dụng" runat="server" />
                        <ext:TextField ID="txtCoQuanSuDung_QTCT" runat="server" ReadOnly="true" Width="150">
                            <ToolTips>
                                <ext:ToolTip ID="ToolTip3" runat="server" AutoHide="true" TrackMouse="true">
                                    <Listeners>
                                        <Show Handler="ShowTip(this,#{txtCoQuanSuDung_QTCT}.getValue())" />
                                    </Listeners>
                                </ext:ToolTip>
                            </ToolTips>
                        </ext:TextField>
                        <ext:Button ID="Button5" runat="server" Icon="Magnifier" Text="Chọn cơ quan" IconAlign="Right">
                            <Listeners>
                                <Click Handler="Ext.net.Mask.show();#{hdStatus}.setValue('LookUp_QTCT');#{DirectMethods}.LoadLookUpToChuc_QTCT();" />
                            </Listeners>
                        </ext:Button>
                    </Items>
                </ext:CompositeField>
                <ext:DisplayField ID="DisplayField3" runat="server" Height="3px">
                </ext:DisplayField>
                <ext:CompositeField ID="CompositeField3" runat="server">
                    <Items>
                        <ext:Label Width="150" ID="Label3" Text="Công việc" runat="server" />
                        <ext:TextField ID="txtCongViec" runat="server" Width="150">
                            <ToolTips>
                                <ext:ToolTip ID="ToolTip1" runat="server" AutoHide="true" TrackMouse="true">
                                    <Listeners>
                                        <Show Handler="ShowTip(this,#{txtCongViec}.getValue())" />
                                    </Listeners>
                                </ext:ToolTip>
                            </ToolTips>
                        </ext:TextField>
                    </Items>
                </ext:CompositeField>
                <ext:DisplayField ID="DisplayField5" runat="server" Height="3px">
                </ext:DisplayField>
                <ext:CompositeField ID="CompositeField5" runat="server">
                    <Items>
                        <ext:Label Width="150" ID="Label5" Text="Chức vụ" runat="server" />
                        <ext:TextField ID="txtChucVu" runat="server" Width="150">
                            <ToolTips>
                                <ext:ToolTip ID="ToolTip2" runat="server" AutoHide="true" TrackMouse="true">
                                    <Listeners>
                                        <Show Handler="ShowTip(this,#{txtChucVu}.getValue())" />
                                    </Listeners>
                                </ext:ToolTip>
                            </ToolTips>
                        </ext:TextField>
                    </Items>
                </ext:CompositeField>
                <ext:DisplayField ID="DisplayField6" runat="server" Height="3px">
                </ext:DisplayField>
                <ext:CompositeField runat="server">
                    <Items>
                        <ext:Label Width="150" ID="lnl" Text="Ngày bắt đầu" runat="server" />
                        <ext:DateField Format="dd/MM/yyyy" ID="dtNgayHieuLuc" Vtype="daterange" runat="server"
                            AnchorHorizontal="100%" Width="100" SelectedDate="">
                            <CustomConfig>
                                <ext:ConfigItem Name="endDateField" Value="#{dtNgayHetHieuLuc}" Mode="Value" />
                            </CustomConfig>
                        </ext:DateField>
                    </Items>
                </ext:CompositeField>
                <ext:DisplayField runat="server" Height="3px">
                </ext:DisplayField>
                <ext:CompositeField ID="CompositeField1" runat="server">
                    <Items>
                        <ext:Label Width="150" ID="Label1" Text="Ngày kết thúc" runat="server" />
                        <ext:DateField Format="dd/MM/yyyy" ID="dtNgayHetHieuLuc" Vtype="daterange" runat="server"
                            AnchorHorizontal="100%" Width="100" SelectedDate="">
                            <CustomConfig>
                                <ext:ConfigItem Name="startDateField" Value="#{dtNgayHieuLuc}" Mode="Value" />
                            </CustomConfig>
                        </ext:DateField>
                    </Items>
                </ext:CompositeField>
                <ext:DisplayField ID="DisplayField2" runat="server" Height="3px">
                </ext:DisplayField>
                <ext:DisplayField ID="DisplayField1" runat="server" Height="3px">
                </ext:DisplayField>
                <ext:CompositeField ID="CompositeField2" runat="server">
                    <Items>
                        <ext:Label Width="150" ID="Label2" Text="Nội dung" runat="server" />
                        <ext:TextArea ID="txtNoiDung" runat="server" Width="150" />
                    </Items>
                </ext:CompositeField>
                <uc:UCQuyetDinh runat="server" ID="UCQuyetDinh" />
                
                <ext:DisplayField ID="DisplayField4" runat="server" Height="3px">
                </ext:DisplayField>
            </Content>
        </ext:Panel>
    </Content>
    <Buttons>
        <ext:Button ID="btnSaveQTCT" runat="server" Text="Lưu" Icon="Disk">
            <Listeners>
                <Click Handler="            Ext.net.Mask.show();
                                  if(#{txtCoQuanSuDung_QTCT}.getValue().trim()=='')
                                    {
                                      Ext.net.Mask.hide();
                                        Ext.MessageBox.alert('Thông báo', 'Xin vui lòng chọn cơ quan !');
                                        return false;
                                     
                                    }
                                   
                      " />
            </Listeners>
            <DirectEvents>
                <Click OnEvent="btnSaveQTCT_CLick">
                </Click>
            </DirectEvents>
        </ext:Button>
        <ext:Button ID="Button1" runat="server" Text="Đóng" Icon="Cancel">
            <Listeners>
                <Click Handler="#{wdQTCT}.hide();" />
            </Listeners>
        </ext:Button>
    </Buttons>
</ext:Window>
<uc:UcToChuc ID="UcToChuc" runat="server" />
